package com.qst.crop.demo.service;

import com.qst.crop.demo.entity.User;
import com.qst.crop.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User getUserByEmail(String email){
        return userMapper.getUserByEmail(email);
    }

    public Integer add(User userinfo){
        return userMapper.add(userinfo);
    }

    public Integer updatePassword(User userinfo){
        return userMapper.updatePassword(userinfo);
    }

}
